/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package world;

/**
 *
 * @author dheath
 */
public class Obstacle extends WorldObject
{

    private Point TLPoint;
    private Point TRPoint;
    private Point BLPoint;
    private Point BRPoint;

    public Obstacle()
    {

    }

    public Point getLocation()
    {
        double resY = (TLPoint.getY() + BLPoint.getY() + TRPoint.getY() + BRPoint.getY()) / 4;
        double resX = (TLPoint.getX() + BLPoint.getX() + TRPoint.getX() + BRPoint.getX()) / 4;

        return new Point(resX, resY);
    }

    public Point getTLPoint()
    {
        return TLPoint;
    }

    public void setTLPoint(Point TLPoint)
    {
        this.TLPoint = TLPoint;
    }

    public Point getTRPoint()
    {
        return TRPoint;
    }

    public void setTRPoint(Point TRPoint)
    {
        this.TRPoint = TRPoint;
    }

    public Point getBLPoint()
    {
        return BLPoint;
    }

    public void setBLPoint(Point BLPoint)
    {
        this.BLPoint = BLPoint;
    }

    public Point getBRPoint()
    {
        return BRPoint;
    }

    public void setBRPoint(Point BRPoint)
    {
        this.BRPoint = BRPoint;
    }
}
